<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__PUBLIC__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/Validform/5.3.2/style.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>权限节点添加</title>
</head>
<body>
<div class="pd-20">
  <form action="" class="form form-horizontal" method="post" id="permissionForm">
      <div class="row">
        <input type="hidden" value="{$the_node['id']}" name="id" class="nodeId">
      </div>
      <div class="row">
        <input type="hidden" value="{$the_node['level']}" name="level" class="levelId">
      </div>
      <div class="row">
          <label class="col-3 form-label"><span class="c-red">*</span>权限名称</label>
          <div class="formControl col-5">
              <input type="text" class="input-text addTitle" id="permission-name" name="title" value="{$the_node['title']}" datatype="*" nullmsg="权限名称不能为空">
          </div>
          <div class="col-4"></div>
      </div>
      
      <div class="row">
          <label for="" class="col-3 form-label"><span class="c-red">*</span>字段名</label>
          <div class="formControl col-5">
              <input type="text" class="input-text addName" name="name" value="{$the_node['name']}" datatype="*" nullmsg="字段名不能为空">
          </div>
          <div class="col-4"></div>
      </div>
       <div class="row">
          <label for="" class="col-3 form-label"><span class="c-red">*</span>排序号</label>
          <div class="formControl col-5">
              <input type="text" class="input-text addSort" name="sort" value="{$the_node['sort']}" datatype="*" nullmsg="排序号不能为空">
          </div>
          <div class="col-4"></div>
      </div>
        <div class="row">
          <label for="" class="col-3 form-label">备注</label>
          <div class="formControl col-5">
              <input type="text" class="input-text addRemark" name="remark" value="{$the_node['remark']}">
          </div>
          <div class="col-4"></div>
      </div>
      <div class="row">
          <label for="" class="col-3 form-label"><span class="c-red">*</span>父级权限</label>
          <div class="formControl col-5">
              <span class="select-box">
                  <select name="pid" id="" class="select addPid" size="1" datatype="*" nullmsg="父级权限不能为空">
                     <volist name="node" id="vo">
                         <if condition="$vo['level'] eq 1">
                             <option value="{$vo.id}" style="" level="{$vo.level}" <if condition="$the_node['name'] eq $vo['name']">checked</if>>{$vo.title}</option>
                         </if>
              
                         <if condition="$vo['level'] eq 2">
                           <option value="{$vo.id}" style="" level="{$vo.level}" <if condition="$the_node['name'] eq $vo['name']">checked</if>>&nbsp;&nbsp;&nbsp;&nbsp;{$vo.title}</option>
                         </if>
                   
                         
                     </volist>
                  </select>
              </span>
          </div>
          <div class="col-4"></div>
      </div>
      <div class="row cl skin-minimal">
        <label for="" class="col-3 form-label">是否启用</label>
        <div class="formControls col-5">
           <input type="checkbox" name="status" value="1">
        </div>
        <!-- <div class="col-4"></div>  -->
      </div>
      
      <div class="row">
          <div class="col-3"></div>
          <div class="col-5">
              <input class="btn btn-success radius" type="submit" value="提交">
          </div>
          <div class="col-4"></div>
      </div>
  </form>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/Validform/5.3.2/Validform.min.js"></script>  
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="Tpl/Admin/common/permission/permission-add.js"></script> 
<script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
<script type="text/javascript">
$(function(){
  $('.skin-minimal input').iCheck({
    checkboxClass: 'icheckbox-blue',
    radioClass: 'iradio-blue',
    increaseArea: '20%'
  });
      
});
</script>
</body>
</html>